package config;

import com.netflix.loadbalancer.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//局部配置类  这个类不能被Application入库文件扫描
@Configuration
public class FundConfiguration {

    //负载均衡策略
    @Bean
    public IRule rule(){
        return new ZoneAvoidanceRule();
    }

    //心跳包的方式
    @Bean
    public IPing ribbonPing(){
        return new DummyPing();
    }
}
